package com.oo.inherit_3.familyCar;

/**
 * FamilyCar--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 15:01
 **/
public class FamilyCar extends Car {

    private String name;

    public FamilyCar(String type, String licenNo, String name) {
        super(type, licenNo);
        this.name = name;
    }

    public FamilyCar() {
    }

    public FamilyCar(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    protected void start() {
        System.out.println("我是"+this.getName()+"我的汽车我做主");
    }

    @Override
    protected void stop() {
        System.out.println("家庭汽车");
    }
}
